<div class="navbar navbar-static-top navbar-inverse nav">
    <div class="navbar-inner">
        <div class="span12">
            <!-- <div class="pull-right">{{ Image::rounded('http://placehold.it/40x40'); }}</div> -->
          	<div class="nav-collapse collapse">
              	<div class="pull-right"> 
	                <ul class="nav pull-left">
	                    <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">&nbsp;
	                    	@if(Auth::check())
	                    	<i class="icon-user icon-white"></i>&nbsp;{{ Str::title(Auth::user()->profile->sup_nama) }} 
	                    	@endif<b class="caret"></b></a>
	                        <ul class="dropdown-menu pull-right" role="menu">
	                            <li><a href="#profileModal" onclick="profileInfo('{{url('console/user/profile')}}')"><i class="icon-user"></i> Profil</a></li>
	                            <li><a href="#resetpasswordModal" data-toggle="modal"><i class="icon-lock"></i> Kemaskini Kata Laluan</a></li>
	                            <li class="divider"></li>
	                            <li><a href="{{ url('console/auth/logout') }}"><i class="icon-off"></i> Keluar</a></li>
	                        </ul>
	                    </li>
	                </ul>
            	</div>
            </div> 
        </div>
    </div>
</div>

	<div id="profileModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	  <div class="modal-header">
	    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
	    <h3 id="myModalLabel">{{ Str::title(Lang::line('global.userinfo')->get()) }}</h3>
	  </div>
	  <div class="modal-body">
			{{ Form::horizontal_open_for_files('#', 'POST', array('id' => 'updateProfileForm')) }}
			{{ Form::hidden('su_id')}}
			{{ Form::control_group(Form::label('wp_tarikh_mula', Str::title(Lang::line('admin.datestart')->get())),Form::xlarge_text('wp_tarikh_mula',null,array('readonly')));}}
			{{ Form::control_group(Form::label('wp_tarikh_tamat', Str::title(Lang::line('admin.dateend')->get())),Form::xlarge_text('wp_tarikh_tamat',null,array('readonly')));}}
			{{ Form::control_group(Form::label('sup_nama', Str::title(Lang::line('admin.fullname')->get())),Form::xlarge_text('sup_nama',null,array('readonly')));}}
			{{ Form::control_group(Form::label('sup_emel', Str::title(Lang::line('admin.activeemel')->get())),Form::xlarge_text('sup_emel',null,array('readonly')));}}
			{{ Form::control_group(Form::label('sup_tel', Str::title(Lang::line('admin.telno')->get())),Form::xlarge_text('sup_tel',null,array('readonly')));}}
			{{ Form::control_group(Form::label('sup_no_ic', Str::title(Lang::line('admin.idno')->get())),Form::xlarge_text('sup_no_ic',null,array('readonly')));}}
			{{ Form::control_group(Form::label('sup_no_pekerja', Str::title(Lang::line('admin.staffno')->get())),Form::xlarge_text('sup_id_pengguna',null,array('readonly')));}}
	  		
	  		{{ Form::control_group(Form::label('wjkp_no_auto', Str::title(Lang::line('admin.staffgroup')->get())),Form::xlarge_text('wjkp_no_auto',null,array('readonly')));}}
			{{ Form::control_group(Form::label('wpj_no_auto', Str::title(Lang::line('admin.department')->get())),Form::xlarge_text('wpj_no_auto', null,array('readonly')));}}
			{{ Form::control_group(Form::label('wpb_no_auto', Str::title(Lang::line('admin.division')->get())),Form::xlarge_text('wpb_no_auto', null,array('readonly')));}}
			{{ Form::control_group(Form::label('wpu_no_auto', Str::title(Lang::line('admin.unit')->get())),Form::xlarge_text('wpu_no_auto', null,array('readonly')));}}
			{{ Form::control_group(Form::label('sup_penyelia_satu', Str::title(Lang::line('admin.supervisor1')->get())),Form::xlarge_text('sup_penyelia_satu', null,array('readonly')));}}
			{{ Form::control_group(Form::label('sup_penyelia_dua', Str::title(Lang::line('admin.supervisor2')->get())),Form::xlarge_text('sup_penyelia_dua', null,array('readonly')));}}
			{{ Form::control_group(Form::label('sur_id', Str::title(Lang::line('admin.navuserrole')->get())),Form::xlarge_text('sur_id', null,array('readonly')));}}
			{{ Form::control_group(Form::label('sup_is_supervisor', Str::title(Lang::line('admin.supervisor')->get())),Form::xlarge_text('sup_is_supervisor', null,array('readonly')));}}
	  		{{ Form::close()}}
	  </div>
	  <div class="modal-footer">
	    <button class="btn" data-dismiss="modal" aria-hidden="true">{{ Str::title(Lang::line('global.close')->get()) }}</button>
	  </div>
	</div>

	<div id="resetpasswordModal" class="modal hide fade" tabindex="-2" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	  <div class="modal-header">
	    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
	    <h3 id="myModalLabel">{{ Str::title(Lang::line('admin.updatelogin')->get()) }}</h3>
	  </div>
	  <div id="resetModalBody" class="modal-body">
		{{ Form::open('admin/user/role', 'POST', array('id' => 'resetForm', 'class' => 'form-horizontal')) }}
<!-- 	  	<div class="control-group">
			<label class="control-label" for="username">Username</label>
			<div class="controls">
			  {{ Form::xlarge_text('username',null,array('placeholder'=>'Username')) }}
			</div>
		</div> -->
		<div class="control-group">
			<label class="control-label" for="oldpassword">{{ Str::title(Lang::line('admin.oldpassword')->get()) }}</label>
			<div class="controls">
			  {{ Form::xlarge_password('oldpassword',array('placeholder'=>'Masukkan Kata Laluan Lama','required')) }}
			  <span class="help-inline">&nbsp;<span class="text-error"><strong>*</strong><small>{{ __('global.required')->get() }}</small></span></span>
			</div>
		</div>
	  	<div class="control-group">
		    <label class="control-label" for="password">{{ Str::title(Lang::line('admin.newpassword')->get()) }}</label>
		    <div class="controls">
		      {{ Form::xlarge_password('password',array('placeholder'=>'Masukkan Kata Laluan Baru','required')) }} 
		      <span class="help-inline">&nbsp;<span class="text-error"><strong>*</strong><small>{{ __('global.required')->get() }}</small></span></span>
		    </div>
	  	</div>
	  	<div class="control-group">
		    <label class="control-label" for="repassword">{{ Str::title(Lang::line('admin.retypepassword')->get()) }}</label>
		    <div class="controls">
		      {{ Form::xlarge_password('repassword',array('placeholder'=>'Masukkan Semula Kata Laluan Baru','required')) }}
		      <span class="help-inline">&nbsp;<span class="text-error"><strong>*</strong><small>{{ __('global.required')->get() }}</small></span></span>
		    </div>
	  	</div>
		{{ Form::close()}}
	  </div>
	  <div class="modal-footer">
	    <button class="btn" data-dismiss="modal" aria-hidden="true">{{ Str::title(Lang::line('global.close')->get()) }}</button>
	    <button id="resetBtn" class="btn btn-primary">{{ Str::title(Lang::line('global.edit')->get()) }}</button>
	  </div>
	</div>
